package cn.cpf.spring.model;

public class Book {

    private String bookname;

    public Book() {
        System.out.println("book construct");
    }

    public Book(String bookname) {
        this.bookname = bookname;
        System.out.println("book construct -> bookname :" + bookname);
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getBookname() {
        return bookname;
    }

    @Override
    public String toString() {
        return "Book{" + "bookname='" + bookname + '\'' + '}';
    }
}

